﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WOS.Common
{
    public sealed class Estimate
    {
        #region Constants
        public static readonly Estimate Empty = new Estimate();
        #endregion
        #region Private Fields
        private readonly TimeSpan? time;
        #endregion
        #region Constructors
        private Estimate()
        {
        }

        public Estimate(TimeSpan time)
        {
            this.time = time;
        }
        #endregion

        #region Overriden Members
        public override string ToString()
        {
            if (!this.time.HasValue)
                return String.Empty;

            return String.Format("{0}", this.time.Value);
        }
        #endregion
    }
}
